package com.zygh.policeasset.controller;

import com.zygh.policeasset.service.DailyMaintenanceBigClassificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RequestMapping({"/dailyMaintenanceBigClassification"})
@Api(tags = {"日常维修类型接口"})
@RestController
public class DailyMaintenanceBigClassificationController {

    @Autowired
    DailyMaintenanceBigClassificationService dailyMaintenanceBigClassificationService;

    @RequestMapping(value = {"/"}, method = {RequestMethod.GET})
    @ApiOperation("获取列表")
    public Object findAll(@RequestParam(value = "name", required = false) String name,
                          @RequestParam(value = "type", required = false) String type) {

        return dailyMaintenanceBigClassificationService.findAll(name,type);
    }
}